home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / umsma101.zip / AUTOSTAT next >
Text File  |  1993-12-08  |  1KB  |  52 lines

  1. .bra {
  2. .ket }
  3. .key USER/A,PASSWORD/A,GROUP/A,SUBJECT/A,POSTTO/A,DAYS/A,MAXUSERS/A,MAXSUBJECTS/A
  4.  
  5. ; ------------------------------------------------------------------------
  6. ;
  7. set VERSION $VER: AutoStat V1.06 (01 Dec 1993)
  8. ;
  9. ; Function:
  10. ;
  11. ; builds statistics using UMSMailStat and posts them automagically into
  12. ; a user defined group.
  13. ;
  14. ; All arguments _must_ be given!
  15. ;
  16. ; arguments:
  17. ;
  18. ; USER, PASSWORD  - of the user posting the stats
  19. ; SUBJECT         - subject of the message to be written
  20. ; POSTTO          - group to where the message will be posted
  21. ;
  22. ; UMSMailStat specific arguments:
  23. ;
  24. ; GROUP           - group about which the stats will be built
  25. ; DAYS            - only for the message of the past DAYS days.
  26. ; MAXUSERS        - authorhitlist contains MAXUSERS entries
  27. ; MAXSUBJECTS     - subjectlist contains MAXSUBJECTS entries
  28. ;
  29. ; ------------------------------------------------------------------------
  30.  
  31. echo "$VERSION by Olaf Peters*N"
  32.  
  33. IF EXISTS t:AutoStat.tmp
  34.   delete >NIL: t:AutoStat.tmp
  35. ENDIF
  36.  
  37. ; messagetext
  38.  
  39. echo >>t:AutoStat.tmp "Group = {POSTTO}*NSubject = {SUBJECT}*NNoUpdate*N--------------*N" NOLINE
  40. ums:bin/UMSMailStat >>t:AutoStat.tmp {USER} {PASSWORD} GROUP={GROUP} DAYS={DAYS} MAXUSERS={MAXUSERS} MAXSUBJECTS={MAXSUBJECTS} ENGLISH
  41.  
  42. ; output to stdout
  43.  
  44. echo "Sende diese Nachricht:"
  45. type t:AutoStat.tmp
  46.  
  47. ; send the message
  48.  
  49. ums:bin/sumsWrite {USER} {PASSWORD} <t:AutoStat.tmp
  50.  
  51.  
  52.